package com.norma.macaron.service.user.service;

import com.norma.macaron.common.model.response.ResponseT;
import com.norma.macaron.service.common.domain.user.TMenu;
import com.norma.macaron.service.common.domain.user.TUser;
import com.norma.macaron.service.user.mapper.TMenuMapper;
import com.norma.macaron.service.user.mapper.TUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangchaofeng
 * @date 2020/6/10 0010
 * @description
 */
@RestController
public class Test {
    @Autowired
    TMenuMapper menuMapper;


    @RequestMapping("/v1.0/user/test1")
    public ResponseT test(@RequestParam("userId") Long menuId){
        TMenu tMenu = menuMapper.selectById(menuId);
        return new ResponseT(tMenu);
    }

}
